package com.iwhalecloud.citybrain.flow.platform.manager.infrastructure.mapper;

import com.iwhalecloud.citybrain.flow.platform.manager.domain.model.FlowTitleExpressionResult;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;


/**
 * @author: lzb
 * @date: 2021/11/9 17:04
 */
@Mapper
public interface FlowTitleExpressionResultDAO {

    /**
     * 批量添加自定义标题表达式结果数据
     *
     * @param flowTitleExpressionResultList
     * @return
     */
    int batchInsertTitleExpressionResult(List<FlowTitleExpressionResult> flowTitleExpressionResultList);


    int insertTitleExpressionResult(FlowTitleExpressionResult flowTitleExpressionResult);

    String getTitleExpressionResultByProcessInstanceIdAndActivityId(@Param("processInstanceId") String processInstanceId, @Param("activityId") String activityId);


    String getTitleExpressionResultByProcessInstanceId(@Param("processInstanceId") String processInstanceId);


}
